@@ -219,12 +219,16 @@ public class SessionActivity extends BaseActivity implements SessionContract.Vie |
||
219 | 219 |
|
220 | 220 |
@Override |
221 | 221 |
public void refreshCameraStatus(final String status) { |
222 |
- cameraStatusTextView.post(new Runnable() { |
|
223 |
- @Override |
|
224 |
- public void run() { |
|
225 |
- cameraStatusTextView.setText(status); |
|
226 |
- } |
|
227 |
- }); |
|
222 |
+ if(cameraStatusTextView!=null){ |
|
223 |
+ cameraStatusTextView.post(new Runnable() { |
|
224 |
+ @Override |
|
225 |
+ public void run() { |
|
226 |
+ if(cameraStatusTextView!=null){ |
|
227 |
+ cameraStatusTextView.setText(status); |
|
228 |
+ } |
|
229 |
+ } |
|
230 |
+ }); |
|
231 |
+ } |
|
228 | 232 |
} |
229 | 233 |
|
230 | 234 |
@Override |
@@ -86,12 +86,6 @@ public class SessionPresenter implements SessionContract.Presenter, SessionInter |
||
86 | 86 |
if (!isWorking) { |
87 | 87 |
return; |
88 | 88 |
} |
89 |
- if(BuildConfig.isTestMode){ |
|
90 |
- if(photoList!=null && photoList.size()>10){ |
|
91 |
- interactor.endSession(); |
|
92 |
- return; |
|
93 |
- } |
|
94 |
- } |
|
95 | 89 |
LogHelper.d(TAG,"onSessionPhotoCaptured "+bean); |
96 | 90 |
bean.groupId = groupId; |
97 | 91 |
DBService.getInstance().addPhotoBean(bean); |
@@ -108,6 +102,9 @@ public class SessionPresenter implements SessionContract.Presenter, SessionInter |
||
108 | 102 |
|
109 | 103 |
@Override |
110 | 104 |
public void onCameraStatusChanged(String status) { |
105 |
+ if (!isWorking) { |
|
106 |
+ return; |
|
107 |
+ } |
|
111 | 108 |
sessionView.refreshCameraStatus(status); |
112 | 109 |
} |
113 | 110 |
|